/*
* Copyrigth 2008 Company All rigths reserved
* File Name: ILaboratory.cs
* Created By:    Wenbin.Xu
* Created Date:   2013/7/8 16:32:53
* Description:    Laboratory模块的接口
* Change History: 
* 
* */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TrainingsApp.Model;
using TrainingsApp.DAL;
using System.Web.UI.WebControls;

namespace TrainingsApp.Logic {
    public class TS_User_Logic {
        public static TS_User_Collecion TS_User_ListTopByUserType(int userType) {
            return TS_User_DAL.TS_User_ListTopByUserType(userType);
        }

        public static TS_User_Entity TS_User_View(System.Int64 Idx) {
            return TS_User_DAL.TS_User_View(Idx);
        }

        public static TS_User_Entity TS_User_Add(TS_User_Entity entity) {
            return TS_User_DAL.TS_User_Add(entity);
        }

        public static void TS_User_Update(TS_User_Entity entity) {
            TS_User_DAL.TS_User_Update(entity);
        }

        public static void TS_User_Delete(System.Int64 Idx) {
            TS_User_DAL.TS_User_Delete(Idx);
        }

        public static bool TS_User_Exists(string username) {
            return TS_User_DAL.TS_User_UserNameExists(username);
        }

        public static bool TS_User_ExistsEmailAndUserName(string userName, string email) {
            return TS_User_DAL.TS_User_ExistsEmailAndUserName(userName, email);
        }
    }
}
